﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="mgrReports.aspx.cs" Inherits="WebUI.Pages.mgrReports" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTop" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
    <div id="content">
    <table id="graphs" width="100%">
    <tr><td><h2>Relatórios</h2></td><td></td></tr>
    
    <tr><td style="text-align: right">Selecione o relatório:</td><td>
        <asp:DropDownList ID="ddlReport" runat="server">
        </asp:DropDownList>
&nbsp;<asp:Button ID="Button1" runat="server" Text="Gerar!" onclick="Button1_Click" />
        </td></tr>
    
    <tr>
    <td colspan="2">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" 
                Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
                WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
            Width="100%">
                <ServerReport 
                    ReportServerUrl="http://vspsol01/reportserver_ENTSOLUTIONS" />
            </rsweb:ReportViewer>
    <br />
    </td>
    </tr>
    
    <tr>
    <td>
    <asp:SqlDataSource ID="ESS_DataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ESSystemConnectionString %>" 
        SelectCommand="SELECT U.Nome AS AnalistaNegocios, COUNT(*) as n FROM Solicitacoes AS S LEFT OUTER JOIN Usuarios AS U ON S.idAnalistaNegocios = U.idUsuario GROUP BY U.Nome"></asp:SqlDataSource>
    </td><td>
            &nbsp;</td>
    </tr>
    </table>
</div>

</asp:Content>
